Changes to Code Clones in Evolving Software

نویسنده

  • Jens Krinke
چکیده

Although cut-copy-paste (-and-adapt) techniques are considered bad practice, every programmer is using them. Because such practices not only involve duplication but also modification, they are called code cloning and the duplicated code is called code clone. A clone group consists of the code clones that are clones of each other. Code cloning is easy and cheap during software development, but it makes software maintenance more complicated, because errors may have been duplicated together with the cloned code and modifications of the original code often must also be applied to the cloned code. There has been little empirical work that checks whether the above mentioned problems are relevant in practice. Kim et al. [2] investigated the evolution of code clones and provided a classification for evolving code clones. Their work already showed that during the evolution of the code clones, common changes to the code clones of a group are fewer than anticipated. Geiger et al. [1] studied the relation of code clone groups and change couplings (files which are committed at the same time, by the same author, and with the same modification description), but could not find a (strong) relation. Therefore, this work will present a study that (in)validates the following hypothesis:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Review Paper on Implementing Laxical Approach of Clone Detection and Removal for Type-3

Software Systems are evolving by adding new functions and modifying existing functions over time. Through the evolution process, copy paste programming and other processes leads to duplication of data resulting in model clones or code clones. Since clones are believed to reduce the maintainability of software. Several code clone detection techniques and tools have been proposed. This paper prop...

متن کامل

Code Clone Authorship - A First Look

Code clones are said to threaten the maintainability of software systems. Changes to one cloned code sequence likely require propagation to its copies. Proper change propagation may be more difficult when the clones are created and maintained by different authors. We present an approach to track the authors of code clones and report on a first case study. The results indicate that the number of...

متن کامل

Detection and evolution analysis of code clones for efficient management of large-scale software systems

In recent decades, large-scale software systems have become mainstream. Such software systems have complicated the maintenance process by increasing efforts such as inspection and understanding of the existing source code. Therefore, to maintain these systems, a great deal of work and time are necessary. To alleviate this problem, this research focus on a well-known factor hindering the softwar...

متن کامل

An insight into the dispersion of changes in cloned and non-cloned code: A genealogy based empirical study

In this paper, we present an in-depth empirical study of a new metric, change dispersion, that measures the extent changes are scattered throughout the code of a software system. Intuitively, highly dispersed changes, the changes that are scattered throughout many software entities (such as files, classes, methods, and variables), should require more maintenance effort than the changes that onl...

متن کامل

Towards the Code Clone Analysis in Heterogeneous Software Products

Code clones are parts of source code that were usually created by copy-paste activities, with some minor changes in terms of added and deleted lines, changes in variable names, types used etc. or no changes at all. Clones in code decrease overall quality of software product, since they directly decrease maintainability, increase fault-proneness and make changes harder. Numerous researches deal ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softwaretechnik-Trends

دوره 27  شماره 

صفحات  -

تاریخ انتشار 2007